$(window).load(function(){
	var metierDDL = $('#expertises');
	if(metierDDL) {
		metierDDL.ddlstackable();
	}
	//Valididator instanciation
	$("#registration").validate({
		onfocusout:false,
		onkeyup: false,
		errorPlacement: function(error, element) {
			error.appendTo( element.parent("div").next("div") );
		},
		rules: {
			"salutation[]":{required:true},
			firstname:{required:true},
			lastname:{required:true},
			email:{required:true,email:true},
			password:{required:true},
			confirmedpwd:{required:true,equalTo:"#password"},
			address1:{require:true},
			zipcode:{required:true},
			city:{required:true},
			payment:{required:true},
			"expertises[]":{required:true}
		},
		messages: {
			"salutation[]":"*",
			firstname:"*",
			lastname:"*",
			email:{required:"*",email:"*"},
			password:"*",
			confirmedpwd:{required:"*",equalTo:"*"},
			address1:{require:"*"},
			zipcode:"*",
			city:"*",
			payment:"*"
		}
	});
});